/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.concordia.wsdl.filter;

/**
 *
 * @author MajiD
 */
public class testBF {
	public static void main(String[] args) {
		// TODO code application logic here
		try {
			BloomFilter<String> bloomFilter = new BloomFilter<String>(100, 10);
			String keyword = "abcdef..";

			bloomFilter.add(keyword);

			if (bloomFilter.contains(keyword)) {
				System.out.println("BloomFilter contains \"" + keyword + "\" with probability " + (1 - bloomFilter.expectedFalsePositiveProbability()));
			}
		} catch (Exception e) {
			// go fuck yourself
		}
	}
}
